<template>
    <div>my0二级路由对应的页面
        <el-button @click="increment">count++</el-button>
       <h1>count: {{this.$store.getters.getCount}}</h1>
   <el-button @click="increment0">actions 的count++</el-button>
    </div>
    
</template>
<script>
export default {
    data() {
        return {
            count: this.$store.getters.getCount
        }
    },
    methods: {
        increment() {
            this.$store.commit("setCount")
        },
        increment0() {
            debugger
            this.$store.dispatch("invokecount")
        }

    }
}
</script>